import request from '@/utils/request'

const BASE_URL = '/admin/system/sysActivity';

export default {
    findPageInfo(page, limit, searchObj) {
        return request({
            url: `${BASE_URL}/${page}/${limit}`,
            method: 'get',
            params: searchObj
        })
    },


    addActivity(sysActivity) {
        return request({
            url: `${BASE_URL}/addActivity`,
            method: 'post',
            data: sysActivity
        })
    },

    findActivityById(id) {
        return request({
            url: `${BASE_URL}/findActivityById/${id}`,
            method: 'get',

        })
    },

    updateActivity(sysActivity) {
        return request({
            url: `${BASE_URL}/updateActivity`,
            method: 'post',
            data: sysActivity
        })
    },

    removeActivityById(id) {
        return request({
            url: `${BASE_URL}/removeActivityById/${id}`,
            method: 'delete',

        })
    },
    //  7、批量删除
    batchremoveId(ids) {
        return request({
            url: `${BASE_URL}/removeActivityByIds`,
            method: 'delete',  // 提交方式
            data: ids
        })
    },
}